// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
//import axios from 'axios'
import VueAxios from 'vue-axios'
import ElementUI from 'element-ui'; //加入
import 'element-ui/lib/theme-chalk/index.css';//加入
import store from './store'
import Vuex from 'vuex'
import axios from './api/index'; //  axios

Vue.prototype.$http = axios;   // 注册全局
Vue.use(Vuex);

Vue.use(VueAxios, axios)

Vue.use(ElementUI);//加入

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  store,
  router,
  components: { App },
  template: '<App/>'
})
